Ext.define('BISC.store.CategoryTreeStore', {
    extend: 'Ext.data.TreeStore',
    requires: [
        'BISC.model.CattributeModel'
    ],
    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            autoLoad: true,
            storeId: 'categoryTreeStore',
            model: 'BISC.model.CattributeModel',
            proxy: {
                type: 'jsonp',
                url: 'http://localhost:8888/categories/list',
                reader: {
                    type: 'json',
                    root: 'records',
                    successProperty: 'success'
                }
            }
        }, cfg)]);
    }
});
